import request from "@/plugins/axios";
// 文章分类列表
export function listApi(data) {
  return request({
    url: "/admin/newsCate/index",
    method: "post",
    data,
  });
}
// 文章分类添加
export function addApi(data) {
  return request({
    url: "/admin/newsCate/create",
    method: "post",
    data,
  });
}
// 文章分类修改
export function saveApi(data) {
  return request({
    url: "/admin/newsCate/save",
    method: "post",
    data,
  });
}
// 文章分类删除
export function delApi(data) {
  return request({
    url: "/admin/newsCate/delete",
    method: "post",
    data,
  });
}
// 文章分类状态
export function stateApi(data) {
  return request({
    url: "/admin/newsCate/state",
    method: "post",
    data,
  });
}
